package com.example.gateway.rpc;

import com.example.gateway.model.LoginUserModel;
import com.example.gateway.model.ResponseModel;

import org.springframework.cloud.openfeign.FeignClient;
import org.springframework.web.bind.annotation.PostMapping;
import org.springframework.web.bind.annotation.RequestParam;

@FeignClient(value = "basedata")
public interface UserRpc {
    @PostMapping("/rpc/user/validate")
    ResponseModel validate(@RequestParam String token);
    @PostMapping("/rpc/user/userinfo")
    ResponseModel<LoginUserModel> getUserInfo(@RequestParam String token);
}
